Key Binding

BEAV provides a user configurable interface. The interface is controlled by a set of key bindings. This relates the command that will be executed when a particular key stroke is entered. There are a set of default key bindings as described in this manual. These can be changed to reflect your preferences. When a change is made it is reflected in the help screen.



        678901234567890123456789012345678901234567890
 		 Ctl-X ? 		 binding-for-key 		 Sh-F1
        

This command will tell you what function a certain key sequence is bound to. When this command is given you will be prompted for a key stroke or key stroke sequence. BEAV will report back with the function name.



        678901234567890123456789012345678901234567890
 		 Esc K 		 bind-to-key 		 
        

First you will prompted for a function name. Enter the name of the function that you wish to create a new binding for. Function names are the names listed in this manual that are of the form of `move-forw-unit' or `display-hex'. After you enter the name hit return. You will be prompted for a key. This can be in the form of a single standard key such as `Z'. Standard key sequences can be entered such as `Ctl-X Z' or `Esc Z'. Special keys can be entered such as `F1' (function key 1) or `Page Down'. It is probably a good idea to not use keys that are needed for editing. If you bound `Z' to a function then you would not be able to enter it as a keystroke when using ASCII display mode. You could still enter it using the `insert-literally' command or doing it in one of the data display modes but this would be more cumbersome.



        678901234567890123456789012345678901234567890
 		 Ctl-X L 		 bindings-load 		 
        

You are prompted for a file name that contains the key binding that you wish to set. This file is read in and the appropriate bindings are set. The text in the binding file should be of the form;



        678901234567890123456789012345678901234567890
 		 <key name> <function name> <key code>
For example;


        678901234567890123456789012345678901234567890
 		 Ctl-X Ctl-P 		 move-back-char 		 0550
        


        678901234567890123456789012345678901234567890
 		 F1 		 move-forw-char 		 04bb
        


        678901234567890123456789012345678901234567890
 		 Ctl-A 		 move-forw-unit 		 0141
        


        678901234567890123456789012345678901234567890
 		 Esc Ctl-T 		 move-back-unit 		 0354
        

The easiest way of producing a valid key binding file is to set the desired bindings in BEAV. Next issue the `help' command (ESC ?), then write the buffer out with the file-write command (Ctl-X Ctl-W). The file created will be a valid format for loading and can be edited as desired. It is the only reliable way to get the <key code> number.